-- GENERATED SPELL FOR [Rip-Blade Ravager] --


function spell0_22123(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22123', 2332, 1)
end

function Sorts_22123(pUnit, Event)
local choix_sorts_22123 = math.random(0, 0)
if choix_sorts_22123 == 0 then
pUnit:RegisterEvent('spell0_22123', 1, 1)
end
end

function mob22123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22123', math.random(1500, 3000), 1)
end

function mob22123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22123, 1, 'mob22123_Action')
RegisterUnitEvent(22123, 2, 'mob22123_Leave')
RegisterUnitEvent(22123, 3, 'mob22123_Kill')
RegisterUnitEvent(22123, 4, 'mob22123_Die')
